<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>首页</title>
</head>
<body>
<h1>数据列表</h1>

<table border="1">
    <tr>
        <th>id</th>
        <th>name</th>
        <th>price</th>
    </tr>

    <c:forEach var="it" items="${list}">
        <tr>
            <td>${it.id}</td>
            <td>${it.name}</td>
            <td>￥${it.price}</td>
        </tr>
    </c:forEach>

</table>
</body>
</html>
